﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZOVNP.Model.Abstracts;

namespace ZOVNP.Engine
{
    [DomainObject(typeof(IUser))]
    public partial class User : IUser
    {
        private IDomainCollection<IOrder> _ordersLocker;

        public User()
        {
            _ordersLocker = new SmartCollection<Order, IOrder>(this, Orders);
        }

        IDomainCollection<IOrder> IUser.Orders
        {
            get { return _ordersLocker; }
        }
    }
}
